// To parse this JSON data, do
//
//     final dictionary = dictionaryFromJson(jsonString);

import 'package:freezed_annotation/freezed_annotation.dart';
import 'dart:convert';

part 'dictionary.freezed.dart';
part 'dictionary.g.dart';

Dictionary dictionaryFromJson(String str) =>
    Dictionary.fromJson(json.decode(str));

String dictionaryToJson(Dictionary data) => json.encode(data.toJson());

@freezed
class Dictionary with _$Dictionary {
  const factory Dictionary({
    @JsonKey(name: "createUser") int? createUser,
    @JsonKey(name: "createTime") String? createTime,
    @JsonKey(name: "updateUser") int? updateUser,
    @JsonKey(name: "updateTime") String? updateTime,
    @JsonKey(name: "status") int? status,
    @JsonKey(name: "isDeleted") int? isDeleted,
    @JsonKey(name: "id") String? id,
    @JsonKey(name: "parentId") String? parentId,
    @JsonKey(name: "type") String? type,
    @JsonKey(name: "description") String? description,
    @JsonKey(name: "label") String? label,
    @JsonKey(name: "value") String? value,
    @JsonKey(name: "sort") int? sort,
    @JsonKey(name: "remark") String? remark,
  }) = _Dictionary;

  factory Dictionary.fromJson(Map<String, dynamic> json) =>
      _$DictionaryFromJson(json);
}
